package com.yaowk.event.event;

import com.yaowk.event.model.UserModel;
import net.dreamlu.event.core.ApplicationEvent;

/**
 * Created by yaowk on 17-8-29.
 */
public class UserEvent extends ApplicationEvent {
    public UserEvent(UserModel source) {
        super(source);
    }

    @Override
    public UserModel getSource() {
        return (UserModel) super.getSource();
    }

    public static final String ADD_USER = "addUser"; // 管理员添加用户事件
    public static final String DELETE_USER = "deleteUser"; // 管理员添加用户事件
}
